package secondQuestion;

import java.util.Calendar;

public class SecondQuestion {
	public int nextYearTime(){
		Calendar cal = Calendar.getInstance();
		cal.set(cal.get(Calendar.YEAR)+1,2,1);
		cal.add(Calendar.DAY_OF_YEAR, -1);
		return cal.get(Calendar.DAY_OF_WEEK);
	}
}
